# coding: utf-8

import tushare

from common.TradeCal import TradeCal
from settings import config
from utils import SQLPool
from utils.log import Log
from utils.syredis import RDBTool

sql_pool = SQLPool()
sql_pool.from_object(config["prod"])

RDBTool.from_object(config["prod"])
rdb = RDBTool()

log = Log()
log.from_object(config["prod"])

# tushare包
ts = tushare.pro_api(token="68ece19b0576673a29a9fff7b3eac980c6170f8e7ea1a05774f3cf9c")

# 深交所交易日历
trade_cal = TradeCal(number=120).calender    # 最近10年交易日历

